﻿using System.Collections.Generic;

namespace Gmantis.Uploader
{
    public class UploadFilePartPackage : List<UploadFilePartInfo>
    {
        // Fields
        private bool _hasOnlyOneFile = true;

        // Methods
        public long GetSize()
        {
            long num = 0L;
            foreach (UploadFilePartInfo info in this)
            {
                num += info.GetSize();
            }
            return num;
        }

        // Properties
        public bool ServerWaitForOneFile
        {
            get
            {
                return this._hasOnlyOneFile;
            }
            set
            {
                this._hasOnlyOneFile = value;
            }
        }
    }
}
